<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>购物车</title>
	<link rel="stylesheet" type="text/less" href="__TEMPLATE__/style/main.less" />
	<link rel="stylesheet" href="__TEMPLATE__/style/bootstrap.min.css" />
	<link rel="stylesheet" href="__TEMPLATE__/style/font-awesome.min.css">
	<script type="text/javascript" src="__TEMPLATE__/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/main.js"></script>
	<hdjs>
</head>
<body>
<!-- 头部开始 -->
<div id="top" style="margin-bottom: 120px;">
	<div class="nav">
		<div class="left">
			<a href="">小米网</a>
			<span>|</span>
			<a href="">MIUI</a>
			<span>|</span>
			<a href="">米聊</a>
			<span>|</span>
			<a href="">游戏</a>
			<span>|</span>
			<a href="">多看阅读</a>
			<span>|</span>
			<a href="">云服务</a>
			<span>|</span>
			<a href="">小米网移动版</a>
		</div>
		<div class="right">
			<if value='$_SESSION["u_username"]'>
				<a href="javascript:;">欢迎回来!</a>
				<span></span>
				<a href="{|U:'Login/index'}"><?php echo $_SESSION["u_username"] ?></a>
				<span>|</span>
				<a href="{|U:'Menber/index'}">个人中心</a>
				<span>|</span>
				<a href="{|U:'Login/out'}">退出</a>
			
			<else/>
				<a href="{|U:'Login/index'}">登录</a>
				<span>|</span>
				<a href="{|U:'Register/index'}">注册</a>
			</if>
		</div>
	</div>
	<div class="logo">
		<a href="__ROOT__"><img src="__TEMPLATE__/images/logo.png" alt="" /></a>
	</div>
</div>
<!-- 头部结束 -->
<!-- 购物车开始 -->
<div id="cart" >
	<h1>我的购物车 <span>在线支付全场满¥150免运费</span></h1>
	<if value="$cartData">
		<table>
			<tr>
				<td width="800px" style="text-align:left;">商品</td>
				<td width="100px">单价</td>
				<td width="200px">数量</td>
				<td width="100px">小计</td>
				<td width="100px">操作</td>
			</tr>
			<foreach from="$cartData[goods]" key="$k" value="$v">
				<tr>
					<td style="text-align:left;">
						<div class="goods">
							<img src="__ROOT__/{$v['options']['pic']}" alt="" width="100" />
							<h3>{$v.name}</h3>
							<p></p>
						</div>
					</td>
					<td>{$v.price}元</td>
					<td>
						<div style="margin: 0 auto;width:155px;">
							<i class="fa fa-minus-square-o fa-2x minus" sid='{$k}' price='{$v.price}' ></i><input type="text" value="{$v.num}" name="num" class="num" /><i class="fa fa-plus-square-o fa-2x plus" sid='{$k}' price='{$v.price}'></i>
						</div>
					</td>
					<td class="{$k}">{$v.total}元</td>
					<td><a href="javascript:hd_confirm(' 确定删除吗？ ',function(){location.href='{|U:'Cart/del',array('sid'=>$k)}'})" class="fa fa-times delete" sid='{$k}'></a></td>
				</tr>
			</foreach>
		</table>
		<div class="total_out">
			<p class="total">商品总计: <span>{$cartData.total}元</span></p>
		</div>
		<div class="total_out">
			<p class="next">
				<a class="continue" href="__ROOT__">继续购物</a>
				<a class="pay" href="{|U:'Order/index'}">去结帐</a>
			</p>
		</div>
	<else/>
		<div class="null" >
			<p>你的购物车还是空的赶紧行动吧！<a href="__ROOT__">马上去购物</a></p>
			<img src="__TEMPLATE__/images/Cart-empty.jpg" alt="" />
		</div>
	</if>
</div>
<!-- 购物车结束 -->
<!-- // 服务样式开始 -->
<include file="__TEMPLATE__/footer.html"/>
<!-- // 服务样式结束 -->
</body>
</html>